<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface ThingsArticleDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return ThingsArticle 
	 */
	public function load($thingsarticle);
	
	public function articles_list($thingsarticle);
	/**
	 * Get all records from table
	 */
	public function queryAll_article($thingsarticle);
	
	public function article_count($thingsarticle);
	
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	
	/**
 	 * Delete record from table
 	 * @param thingsArticle primary key
 	 */
	public function delete($thingsarticle);
	
	
	/**
 	 * Insert record to table
 	 *
 	 * @param ThingsArticle thingsArticle
 	 */
	public function insert($thingsArticle);
	
	
	
	/**
 	 * Update record in table
 	 *
 	 * @param ThingsArticle thingsArticle
 	 */
	public function update($thingsArticle);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByarticleName($value);

	public function queryByStatus($value);

	public function queryBycreatedDate($value);

	public function queryByupdatedDate($value);


	public function deleteByarticleName($value);

	public function deleteByStatus($value);

	public function deleteBycreatedDate($value);

	public function deleteByupdatedDate($value);


}
?>